package com.flyqiu.common.single;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class FlyQiyBaseSingleton {
    private volatile boolean isLoad = false;

    protected FlyQiyBaseSingleton() {
    }

    /**
     * 初始化当前对象
     */
    protected void flyQiyInit() {
        if (isLoad) {
            return;
        }
        log.info("初始化：" + this);
        init();
        isLoad = true;
    }

    /**
     * 调用初始化函数
     */
    public void init() {

    }


}
